﻿using RoadQualityEvaluatorData.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace RoadQualityEvaluatorData.Domain.Context
{
    public class RoadQualityDb_Context : DbContext
    {
        public RoadQualityDb_Context()
            : base("name=RoadQualityDB")
        {
            Database.SetInitializer<RoadQualityDb_Context>(new DropCreateDatabaseIfModelChanges<RoadQualityDb_Context>());
        }

        public DbSet<Location> Locations { get; set; }
        public DbSet<MapSection> MapSections { get; set; }
        public DbSet<Pothole> Potholes { get; set; }
        public DbSet<Speedbump> Speedbumps { get; set; }
        public DbSet<TripStats> TripStatistics { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<Role> Roles { get; set; }


    }
}